<?php

include_once "../../qc_base.php";
include_once "../../qc_utils.php";
include_once "../../bootstrap.php";
include_once "../../classes/MakePage.php";

function test_make_page($project_id){

	$tplfile = '../../testreplacestuff.php';
	$targetfile = 'replacedstuff.php';

	$pagemaker = new MakePage();

	$pagemaker->AddReplacement('test',"THIS IS STUFF FOR THE TEST REPLACEMENT \n A NEW LINE \n AND another");
	$pagemaker->AddReplacement('subdirectory',"subdirectory subdirectory \n subdirectory \n AND another");	
	
	$newstuff = $pagemaker->ReplaceInFile($tplfile,$targetfile);
	
	$pagemaker->PrintReplacementsTable();
	
	file_put_contents($targetfile,$newstuff);	

	return $newstuff;


}

?>
